/* ------------------------------------------------ */
/* --- CARRUSEL PRINCIPAL --- */
/* ------------------------------------------------ */
.carousel-custom {
  width: 95%;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-custom img {
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

.carousel-custom .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

/* --- RESPONSIVE --- */

/* --- Pantallas muy grandes --- */
@media (min-width: 1600px) {
  .carousel-custom img {
    height: 45vh;
  }
}

@media (max-width: 992px) {
  .carousel-control-prev span,
  .carousel-control-next span {
    margin: 0;
  }
  .carousel-custom img {
    height: 650px;
  }
}

@media (max-width: 768px) {
  .carousel-custom img {
    height: 300px;
  }

  img[alt="Fernando Duran"] {
    width: 120px;
  }
}

@media (max-width: 576px) {

  img[alt="Fernando Duran"] {
    width: 120px;
  }

} 

@media (max-width: 480px) {

  img[alt="Fernado Duran"] {
    width: 120px;
  }

} 

  .carousel-control-prev span,
  .carousel-control-next span {
    margin: 0;
  }



/* ------------------------------------------------ */
/* --- TÍTULO CENTRADO --- */
/* ------------------------------------------------ */
.centrado {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 40px 0;
}

.izquierda {
  margin-right: 50px;
}


/* ------------------------------------------------ */
/* --- NUEVOS AJUSTES: IGUALAR TAMAÑO DE IMÁGENES --- */
/* ------------------------------------------------ */
.imagen {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.imagen:hover {
  transform: scale(1.1);
}

/* ------------------------------------------------ */
/* --- FOOTER A PANTALLA COMPLETA --- */
/* ------------------------------------------------ */
.footer-custom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background-color: #939598;
  padding: 15px 10px;
  text-align: center;
  margin-top: 50px;
}

/* Logos del footer */
.footer-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.footer-divider {
  width: 80%;
  margin: 20px auto;
  border: none;
  height: 1px;
  background-color: #ddd;
}

.footer-copy {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  .footer-logo {
    width: 85px;
  }
  .footer-copy {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    width: 70px;
  }
  .footer-custom {
    padding: 30px 15px 20px;
  }
}

/* ------------------------------------------------ */
/* --- AJUSTE FINAL: PERMITIR SCROLL Y EVITAR DESAPARICIÓN --- */
/* ------------------------------------------------ */
html, body {
  height: auto;
  min-height: 100%;
}

body {
  display: block;
}


.card {
  border-color: red;
}

.card-body {
  padding: 15px;
  border-color: red;
}

.card-title {
  font-size: 1rem;
}

.card-text {
  font-size: 0.9rem;
}

.btn {
  font-size: 0.85rem;
  padding: 5px 10px;
}

.linea-centro {
  width: 50%;              /* Ancho de la línea (puedes ajustar a 30%, 70%, etc.) */
  margin: 20px auto;       /* Centrada horizontalmente */
  border: 0;               /* Quita el borde predeterminado */
  border-top: 2px solid #3333334e; /* Crea la línea */
  border-radius: 2px;      /* Suaviza los bordes */
}

/* ------------------------------------------------ */
/* --- SECCIÓN EDUPUC --- */
/* ------------------------------------------------ */
.edupuc-section-full-2 {
  background-color: #f2f2f3;
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.edupuc-section-full-2 p {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
}

.resaltado {
  color: #e49b2e;
  font-weight: 600;
}

/* --- Imagen con animación de aparición --- */
.logo-scroll {
  transition: transform 0.8s ease; /* transición más lenta */
}

.logo-scroll.mover {
  transform: translateY(-10px); /* pequeño “salto” hacia arriba */
}


/* --- Responsive para la sección --- */
@media (max-width: 768px) {
  .edupuc-section-full-2 {
    text-align: center;
  }

  .logo-scroll {
    margin-top: 20px;
  }
}

/* ------------------------------------------------ */
/* --- SECCIÓN EDUPUC --- */
/* ------------------------------------------------ */
.edupuc-section-full {
  background-color: #f2f2f3;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.edupuc-section-full p {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
}

.resaltado {
  color: #e49b2e;
  font-weight: 600;
}

/* --- Imagen con animación de aparición --- */
.logo-scroll {
  transition: transform 0.8s ease; /* transición más lenta */
}

.logo-scroll.mover {
  transform: translateY(-10px); /* pequeño “salto” hacia arriba */
}


/* --- Responsive para la sección --- */
@media (max-width: 768px) {
  .edupuc-section-full-2 {
    text-align: center;
  }

  .logo-scroll {
    margin-top: 20px;
  }
}

.card-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* --- Estilo individual de las cards --- */
    .card {
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      padding: 25px;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }

    .card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 15px;
    }

    .card h3 {
      color: #333;
      margin-bottom: 10px;
      text-align: center;
    }

    .card p {
      color: #555;
      line-height: 1.5;
      text-align: justify;
    }

    .btn {
      display: block;
      width: fit-content;
      margin: 20px auto 0;
      background-color: #007bff;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.2s;
    }

    .btn:hover {
      background-color: #0056b3;
    }
/* Contenedor del carrusel */
    .carousel {
      position: relative;
      width: 800px;
      height: px;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
      background-color: #fff;
      margin: 0 auto;
    }

    /* Imágenes del carrusel */
    .carousel-images {
      display: flex;
      transition: transform 0.5s ease-in-out;
      width: 100%;
      height: 100%;
    }

    .carousel-images img {
      width: 800px;
      height: 450px;
      object-fit: cover;
      flex-shrink: 0;
    }

    /* Botones de control */
    .carousel button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.5);
      border: none;
      color: white;
      font-size: 24px;
      padding: 10px 14px;
      cursor: pointer;
      border-radius: 50%;
      transition: background-color 0.3s;
    }

    .carousel button:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }

    .prev {
      left: 10px;
    }

    .next {
      right: 10px;
    }

    /*Cards 2*/

    /* Contenedor principal */
.contenedor-tarjetas2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Tarjeta individual */
.tarjeta2 {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 50px;
}

.tarjeta2:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Imagen vertical pequeña */
.tarjeta2 img {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Texto */
.tarjeta2 h3 {
  color: #333;
  margin-bottom: 10px;
}

.tarjeta2 p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Botón */
.btn2 {
  background-color: #929598;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn2:hover {
  background-color: #373737;
}

/* ------------------------------------------------ */
/* --- RESPONSIVE DEL CARRUSEL PERSONALIZADO --- */
/* ------------------------------------------------ */

/* Ajuste general: centrado y adaptable al ancho de pantalla */
@media (max-width: 1200px) {
  .carousel {
    width: 90%;
  }

  .carousel-images img {
    width: 100%;
    height: auto;
  }
}

/* Pantallas medianas (tablets horizontales) */
@media (max-width: 992px) {
  .carousel {
    width: 90%;
  }

  .carousel-images img {
    width: 100%;
    height: 400px; /* mantiene tu altura original */
  }

  .carousel button {
    font-size: 20px;
    padding: 8px 12px;
  }
}

/* Pantallas pequeñas (tablets verticales y celulares grandes) */
@media (max-width: 768px) {
  .carousel {
    width: 95%;
  }

  .carousel-images img {
    width: 100%;
    height: 300px; /* reduce proporcionalmente */
  }

  .carousel button {
    font-size: 18px;
    padding: 6px 10px;
  }
}

/* Pantallas muy pequeñas (celulares chicos) */
@media (max-width: 576px) {
  .carousel {
    width: 100%;
    border-radius: 10px;
  }

  .carousel-images img {
    width: 100%;
    height: 230px;
  }

  .carousel button {
    font-size: 16px;
    padding: 5px 9px;
  }
}

/* Pantallas extremadamente grandes (TVs o monitores grandes) */
@media (min-width: 1800px) {
  .carousel {
    width: 70%;
  }

  .carousel-images img {
    height: 500px; /* mismo aspecto pero un poco más grande */
  }

  .carousel button {
    font-size: 30px;
    padding: 12px 16px;
  }
}
